package io.renren.modules.wmstate.dao;

import io.renren.modules.poschangerecord.entity.PoschangeData;
import io.renren.modules.wmstate.entity.WeldingmachineStateEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.mqtt.MqttConfiguration;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-08-18 00:07:54
 */
@Mapper
public interface WeldingmachineStateDao extends BaseMapper<WeldingmachineStateEntity> {

    int postPointData(MqttConfiguration.PointData pointData);

    int updateStatusByWmNo(String wmNo, Integer status);

    String countStatus();

    int insertBatch(@Param("tempList") List<MqttConfiguration.PointData> tempList);

    int updateWmState(Double U, Double I, Integer TEMP, String gwSN);
}
